// 将多个组件中共用的代码抽象出来
let behavior = require('./myBehavior2')
module.exports = Behavior({
  // 可以套娃，behaviors中包含其他behaviors
  behaviors: [behavior],
  properties: {
    myBehaviorProperty: String,
  },
  data: {
    content: 'myBehaviorData',
    time: '2021-6-16'
  },
  lifetimes: {
    attached() {
      console.log('我是behaviors的attached');
      console.log('[behaviors]:',this.properties);
      console.log('[data]:',this.data);
    }
  },
  methods: {
    tapBtn() {
      console.log('我是behaviors的方法');
    }
  },
})